# coding=utf-8
"""
Created on 2010-8-11

@author: Morning BAI
"""

from card_base import CardBase
from sgs.common.constants import userState, cardType

class Shan(CardBase):
    name = '闪'
    def __init__(self, id, color, point):
        CardBase.__init__(self, id, color, point, cardType.BASIC)
    
    def action(self, cond, src, args):
        if src.state not in (userState.BE_SHA,):
            src.addCmd('BROKE_RULE', ['你没被杀，无须躲闪'])
            return